package cola0502.project.hellospringbootcola0502.service.impl;

import cola0502.project.hellospringbootcola0502.entity.Account;
import cola0502.project.hellospringbootcola0502.repository.AccountRepository;
import cola0502.project.hellospringbootcola0502.service.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AccountServiceImpl implements AccountService {
    @Resource
    AccountRepository accountRepository;

    @Override
    public Account insertAccount(Account account) {
        return accountRepository.save(account);
    }
}
